import request from '@/utils/request'

// 查询金蝶-财务-应付票据结算单列表
export function listInfo(query) {
  return request({
    url: '/heart/info/list',
    method: 'get',
    params: query
  })
}

// 查询金蝶-财务-应付票据结算单详细
export function getInfo(id) {
  return request({
    url: '/heart/info/' + id,
    method: 'get'
  })
}

// 新增金蝶-财务-应付票据结算单
export function addInfo(data) {
  return request({
    url: '/heart/info',
    method: 'post',
    data: data
  })
}

// 修改金蝶-财务-应付票据结算单
export function updateInfo(data) {
  return request({
    url: '/heart/info',
    method: 'put',
    data: data
  })
}

// 删除金蝶-财务-应付票据结算单
export function delInfo(id) {
  return request({
    url: '/heart/info/' + id,
    method: 'delete'
  })
}

// 导出金蝶-财务-应付票据结算单
export function exportInfo(query) {
  return request({
    url: '/heart/info/export',
    method: 'get',
    params: query
  })
}
//物料详情计算公式
export function getCompute(query) {
  return request({
    url: '/heart/detailAmount/compute',
    method: 'get',
    params: query
  })
}
